home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / TimGA 1.2.1 / .h / CGeneralDialog.h < prev    next >
Encoding:
Text File  |  1997-07-16  |  1.1 KB  |  56 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    CGeneralDialog.h        ©1995-97 Timo Eloranta        All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <LGADialogBox.h>
  8. #include <URegistrar.h>
  9.  
  10. #include "MyStructs.h"
  11.  
  12. class LCaption;
  13. class LGAEditField;
  14. class LGAPushButton;
  15.  
  16. class CAGASlider;
  17.  
  18. class CGeneralDialog : public LGADialogBox {
  19. public:
  20.     enum {
  21.         class_ID = 'GDlg'
  22.     };
  23.  
  24.             CGeneralDialog ( LStream *theStream );
  25.  
  26.     virtual ~CGeneralDialog() {};
  27.  
  28.     void    InitDialog();
  29.     
  30.     void    ListenToMessage( MessageT inMessage, void *ioParam );
  31.  
  32.     void    SetValues( SGeneral &inGeneral );
  33.     void    GetValues( SGeneral &outGeneral );
  34.  
  35.     virtual void        FindCommandStatus(CommandT inCommand,
  36.                             Boolean &outEnabled, Boolean &outUsesMark,
  37.                             Char16 &outMark, Str255 outName);
  38.  
  39. private:
  40.  
  41.     LGAEditField    * mTicksEdit;
  42.  
  43.     CAGASlider        * mPopSlider;
  44.     LCaption        * mPopCapt;
  45.     
  46.     CAGASlider        * mGridSlider;
  47.     LCaption        * mGridCapt;
  48.     
  49.     LGAPushButton    * mFactoryButton;
  50.     
  51.     void    AdjustFactoryButton( );
  52.     void    SetGridValue( Int16 inValue );
  53.     void    SetDefaultValues();
  54. };
  55.  
  56.